package nju.software.xkxt.service;

import java.util.List;
import java.util.Map;

import nju.software.xkxt.service.model.SelectionModel;

/**
 * @author typ
 * 
 */
public interface SelectionService {

	/**
	 * 根据用户号获取待选课程列表
	 * 
	 * @param userId
	 * @return
	 */
	public List<SelectionModel> getSelectionModelByUserId(int userId);

	/**
	 * 获取不同课程信息的列表
	 * 
	 * @return
	 */
	public List<SelectionModel> getSelection();

	/**
	 * 根据课程ID删除一条选课的课程信息
	 * 
	 * @param courseId
	 * @return
	 */
	public boolean delete(int courseId);
	/**
	 * student提交选课结果
	 * @param userId
	 * @param selection
	 * @return
	 */
	public boolean updateSelectionModelByUserId(int userId, Map<Integer, Integer> selection);
}
